package com.fesine.learn.design.pattern.creational.singleton;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/4/11
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/11
 */
public enum EnumInstance {
    INSTANCE{
        //添加方法
        protected void printTest(){
            System.out.println("fesine print test");
        }
    };
    protected abstract void printTest();
    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumInstance getInstance(){
        return INSTANCE;
    }
}
